package com.example.swimmingpool.entity.employee;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.swimmingpool.converter.LocalDataConverter;
import com.example.swimmingpool.converter.SexConverter;
import com.example.swimmingpool.entity.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("employee")
@ExcelIgnoreUnannotated
public class Employee extends BaseModel {


    @ExcelProperty(value = "姓名")
    private String name;

    private String avatar;

    @ExcelProperty(value = "性别", converter = SexConverter.class)
    private Integer sex;

    @ExcelProperty(value = "电话")
    private String phone;

    @ExcelProperty(value = "地址")
    private String address;

    @ExcelProperty(value = "职位")
    private String work;

    @ExcelProperty(value = "生日", converter = LocalDataConverter.class)
    private LocalDate birthday;


}
